package com.clinic.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
@PrimaryKeyJoinColumn(name = "ds_obj_id")
public class Daily_reservations extends Super_type {

	private static final long serialVersionUID = 1L;

	@Column(insertable = false, updatable = false)
	private int ds_obj_id;
	private Date date_of_reservation;
	@Column(length = 32)
	private String time_period;
	@Column(length = 32)
	private String reservation_type;
	@Column(length = 32)
	private String detection_type;
	@Column(nullable = true)
	private boolean is_reserved;

	public Daily_reservations() {
		super();
	}

	public Daily_reservations(String obj_owner_name, Date date_of_reservation,
			String time_period, String reservation_type, String detection_type,
			boolean is_reserved) {
		super(obj_owner_name);
		this.date_of_reservation = date_of_reservation;
		this.time_period = time_period;
		this.reservation_type = reservation_type;
		this.detection_type = detection_type;
		this.is_reserved = is_reserved;
	}

	public Date getDate_of_reservation() {
		return date_of_reservation;
	}

	public void setDate_of_reservation(Date date_of_reservation) {
		this.date_of_reservation = date_of_reservation;
	}

	public String getTime_period() {
		return time_period;
	}

	public void setTime_period(String time_period) {
		this.time_period = time_period;
	}

	public String getReservation_type() {
		return reservation_type;
	}

	public void setReservation_type(String reservation_type) {
		this.reservation_type = reservation_type;
	}

	public String getDetection_type() {
		return detection_type;
	}

	public void setDetection_type(String detection_type) {
		this.detection_type = detection_type;
	}

	public boolean isIs_reserved() {
		return is_reserved;
	}

	public void setIs_reserved(boolean is_reserved) {
		this.is_reserved = is_reserved;
	}

	public int getDs_obj_id() {
		return ds_obj_id;
	}

	@Override
	public void _toString() {
		System.out.println("Enter - _toString");
		super._toString();
		System.out.println("date_of_reservation: " + this.date_of_reservation
				+ "\ntime_period: " + this.time_period + "\nreservation_type: "
				+ this.reservation_type + "\ndetection_type: "
				+ this.detection_type + "\nis_reserved: " + this.is_reserved);
		System.out.println("Exit - _toString");
	}
}